import React from 'react'
import {useEffect} from "react"
import Myevents from "../utils/events"
function Appfn() {
  useEffect(()=>{
    Myevents.addListener("zhao",(data)=>{
        console.log(data,111111);
    }) 


  },[]) // 相当于componetDIDMOUNTD
  return (
    <div>A</div>
  )
}

export default Appfn